Class_name = "CTurret"
object_name = "_PzVI-H1_T1"

AimingRay=true

[COCKPIT_LIMITS]
x= -0.06, 0.14
y= -0.2, 0.11
z= -0.1, 0.06
[END]

[OPEN_COCKPIT_LIMITS]
x= -0.5, 0.5
y= -0.07, 0.2
z= -0.5, 0.15
[END]

VisualImage=0,"graphics\Vehicles\_PzVI-H1\_PzVI-H1-C2-low.mgm",true
VisualImage=1,"graphics\Vehicles\_PzVI-H1\_PzVI-H1-C2.mgm",8
CollisionBody="graphics\Vehicles\_PzVI-H1\_PzVI-H1-C2.col"
HitBody="graphics\Vehicles\_PzVI-H1\_PzVI-H1-C2_DetColl.col"
KeepNetworkImages=true	//high-poly cockpit will be visible from other workstations of the object

//VisualImage=ID,model_or_effect,cast_shadows[,debris_effects]
//ID:					INT:	0 - visible everywhere, 1 - visible inside, 2 - visible outside
//model_or_effect:		STRING:	path to model file (mgm) of effect file (epl)
//cast_shadows: 		BOOL/INT:	cast shadows from object or not (cast_shadows=Attr1+Attr2+...+AttrN)
//						VIF_CASTSHADOWS=1,
//						VIF_BLENDMASKLAST=2,
//						VIF_ALWAYSONTOP=4,
//						VIF_FLATAMBIENT=8,
//[,debris_effects]:	BOOL:	optional parameter, show effects on object debris or not

TransparentCockpit=false	// If false - Attached bot will be not rendered if cockpit hatch is closed (default =true)

ImageAttr=1	//IA_NOCLIP
//	IA_DEFAULT=0,
//	IA_NOCLIP=1,
//	IA_NOCLIP_ANIM=2,
//	IA_NOROTINTERPOLATION=4,
//	IA_NOMINZ=8,
//	IA_NOMINPIXELS=16,
//	IA_NOPOSINTERPOLATION=32,
//	IA_CLOSEVIEWARG=64,
//	IA_ALWAYSVISIBLE=128,
//	IA_SCALEARG=256,
//	ImageAttr=Attr1+Attr2+...+AttrN

//LocalPosRot=true
//ConvexAnimThreshold=0.000001	//  

VisualRadius=5.0

mp_site=true

CopyPosAttachID=1	//Copy orientation from other parent's object, on AttachID==1

[attach=0]
	object = "LuaScripts/WorldObjects/Bots/BotTankPz6H1_Commander.txt"
	position = 0,0,0
	convex="bot_pos",false	//false: Attach object relative to "bot_pos" convex (not absolute)
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_RUS_76_AP.bin"

SoundScript="LuaScripts/Sound/Vehicles/PzVI-H1_FP_Turret_T1.cfg"

Script="LuaScripts\ObjectScripts\Vehicles\_PzIII-M_T1.sc"

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)



SightPos = 0.0, 1.3, 0.0
PositionChangeTime = 0.5
StandDuration = 1.0
SitDuration = 1.0
PreEjectDuration = 1.0
ReloadDelay = 0.3
FreezeOnReload = false
AutoRecharge = true

BotRotaionValueZ = 0	// not used for tank
LegsParameter = 0 // not used for tank

BotMaxSecondAngle = 25.0 // not used for tank
BotMinSecondAngle = -5.0 // not used for tank

BotMaxFirstAngle  = 10.0 // not used for tank
BotMinFirstAngle  = -10.0  // not used for tank

FirstToSecondInterp = 0.0 // not used for tank

GunSightDistanceArg = 9544
GunSightYawArg = 9546
GunSightTypeArg = 9545

//   ,         
//SectorLimits =  -45.0,  +45.0,  25.0, 90.0
//SectorLimits =	-180.0, -140.0, -15.0, 90.0
//SectorLimits =	 140.0,  180.0, -15.0, 90.0

// Damage

//BeamHitZeroArmor=true //      m_fArmor  m_fArmorSides ( ,       )
//LifeRate=5000
//LifeRateFrag=5000 
//Firing=0.005
//Armor=82
//[ArmorBox]			//    ,     ,   ,     Armor=
//	FovH=90			//          ,     ,  ArmorFront
//	FovV=90			//          ,     ,  ArmorFront
//					//  5        
//	ArmorFront=100
//	ArmorBack=82
//	ArmorTop=26
//	ArmorBottom=26
//	ArmorRight=82
//	ArmorLeft=82
//[end]

//maxDamageArgValue=0.98
//DamageArg=5000
damageablePart=""

IsCritical=false	//true -       
LifeK=200			//         ( -  )

KillChildObjectsOnParentDeath = true

SphereHitProtection=82	//       

[SphereProtectionBoxOpen]	//    ,        ,   ,     SphereHitProtection=
	FovH=90			//          ,     ,  ArmorFront
	FovV=60			//          ,     ,  ArmorFront
					//  5        
	ArmorFront=0
	ArmorBack=0
	ArmorTop=0
	ArmorBottom=26
	ArmorRight=82
	ArmorLeft=0
[end]

[SphereProtectionBoxClose]	//    ,        ,   ,     SphereHitProtection=
	FovH=90			//          ,     ,  ArmorFront
	FovV=150			//          ,     ,  ArmorFront
					//  5        
	ArmorFront=100
	ArmorBack=82
	ArmorTop=26
	ArmorBottom=26
	ArmorRight=82
	ArmorLeft=82
[end]

////	Energy loss for bullet travel through HitBody convices	////

energyloss="",true,1,200	//     , true -       -,       ,        
energyloss="com_tower_5",false,15,1				//Commander hatch armour plate, 15mm, K=1.0

/////Functional Damage Groups

[DGroup=Body]		//   _KV1s.txt     DGroup
	IsCritical=true
	LifeK=20
	DamageArg=5000
	MinValidLife=0.02
[end]

//End of Functional Damage Groups

[Entrance]
	EntrancePos= -1.5, -0.87577, -4.2
	EntranceRot= 0,225,0
	JumpDir= 0,0,0
[end]

ColimatorHideArg=9547

DefaultGun=0	//default=-1, all of the guns are active

ClosedHatch=false // True -    
ClosedWindow=true  // True -    
CanopyOpenByDefault=false
WindowOpenByDefault=true
NoAimingWhenOpened=true  // True -      
canopytime=4.75	//   Arg=0  Arg=0.95.     Arg=0.1  Arg=0.9     (4 ),    0.95/0.8*4=4.75.
//windowtime=1.5

OpenCockpitArg=31
AutoCanopy=false
CockpitLightArg=30000,0.35,0.351,0.6
canopyLockSoundMask=2	// 0 bit - canopy unlock, start
						// 1 bit - canopy unlock, end
						// 2 bit - canopy lock, start
						// 3 bit - canopy lock, end

//OpenWindowArg=33
AutoWindow=false
WindowLightArg=30010,0.3,0.45,0.6

TechChatCrewRole=5	//    (Driver: 1, Gunner: 3, Commander: 5, Machinegunner: 7, Radioman: 9)

SetCockpitArgs=false	// true -             , false -              

//CockpitArg= FetchType, CmdID, SubcmdID, ArgNum, ArgValDefault, SmoothingType, SmoothingPower, NetworkFlag
//FetchType=-1:       
//FetchType=-2:         
//FetchType=-3:          parent-
//FetchType>=0:          child-   Attach ID
//CmdID=[0..999]: ID    ,    .
//CmdID=[1000..1999]: ID    ,    .
//SubcmdID=[0..3]: ID     .
//SubcmdID=[0..1]: ID     .
//ArgNum:     / .
//ArgValDefault:      ,    .
//SmoothingType: smooth_clamp -  - 
//SmoothingType: smooth_wrap -   
//SmoothingPower:   
//NetworkFlag="":           ,  SetCockpitArgs=false
//NetworkFlag="low_freq":     ,       ,    
//NetworkFlag="med_freq":     ,       ,    
//NetworkFlag="high_freq":     ,       ,    
//NetworkFlag="granted_single":     ,       ,     

CockpitArg = -3, 0000, 0, 60210, 0.0, "smooth_clamp", 0.0, "" // Electric point lights. CommandID, SubCommandID, Arg, DefaultValue, InterpolationType, Smooth, last not used on Fetch
CockpitArg = -3, 0000, 1, 60310, 0.0, "smooth_clamp", 0.0, "" // Electric flood light

[moveBotDeviator]
  HiFreqAmp = 0.2f
  MaxDeviation = 0.3f
  Periods = 2.1, 0.4;
[end]
accelBotDirK = 0.3
accelBotDirSmooth = 0.05
accelBotSideK = 0.3
accelBotSideSmooth = 0.05